//
//  UIApplication+AppInfo.m
//  JQKit
//
//  Created by JQZ on 2017/12/28.
//  Copyright © 2017年 JQZ. All rights reserved.
//

#import "UIApplication+AppInfo.h"

@implementation UIApplication (AppInfo)

#pragma mark - General app info

- (NSString *)appName
{
    return [[[NSBundle mainBundle] infoDictionary] objectForKey:(NSString*)kCFBundleNameKey];
}

- (NSString *)appVersion
{
    return [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"];
}

- (NSString *)appBuild
{
    return [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"];
}

- (NSString *)appBundleID
{
    return [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"];
}

@end
